#include <locale.h>
#include <stdio.h>
#include <time.h>

int main(void) {
    time_t currtime;
    struct tm *timer;
    char buf[80];
    time(&currtime);
    timer = localtime(&currtime);

    strftime(buf, 80, "%c", timer);    
    printf("Date: %s\n", buf);

    printf("Locale : %s\n", setlocale(LC_ALL, NULL));
    strftime(buf, 80, "%c", timer);    
    printf("Date: %s\n", buf);

    printf("Locale : %s\n", setlocale(LC_ALL, ""));
    strftime(buf, 80, "%c", timer);    
    printf("Date: %s\n", buf);

    printf("Locale : %s\n", setlocale(LC_ALL, "en_US.UTF-8"));
    strftime(buf, 80, "%c", timer);    
    printf("Date: %s\n", buf);

}
